cmake_minimum_required (VERSION 3.20)

set(MODULE_NAME _odv_gui)

file(GLOB_RECURSE INCLUDE_LIST "*.h")
aux_source_directory(./ SRC_LIST)

pybind11_add_module(${MODULE_NAME} ${INCLUDE_LIST} ${SRC_LIST})

set_target_properties(${MODULE_NAME} PROPERTIES
    LIBRARY_OUTPUT_DIRECTORY "${PROJECT_ROOT_DIR}/pyCode/modules"
    RUNTIME_OUTPUT_DIRECTORY "${PROJECT_ROOT_DIR}/pyCode/modules"
)

# line Qt5
target_link_libraries(${MODULE_NAME} PUBLIC
    Qt5::Core
    Qt5::Gui
    Qt5::Widgets
)

# line odv
target_link_libraries(${MODULE_NAME} PUBLIC
    odv::Core
    odv::GUI
)

